import { createRouter, createWebHistory } from 'vue-router';
import ViewModel from "@/views/ViewModel.vue";
import LoginRegister from "@/views/LoginRegister.vue";
import HistoryImg from "@/views/HistoryImg.vue";
const routes = [
    {
        path: '/',
        redirect: '/login'
    },
    {
        path: '/login',
        name: 'Login',
        component: LoginRegister
    },
    {
        path: '/view',
        name: 'View',
        component: ViewModel
    },
    {
        path: '/historyImg',
        name: 'HistoryImg',
        component: HistoryImg
    },
];

const router = createRouter({
    history: createWebHistory(),
    routes
});

export default router;
